﻿<catel:Page x:Class="Catel.Examples.WPF.BrowserApplication.Views.SecondPage"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:catel="http://catel.codeplex.com">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <TextBlock Grid.Row="0" Grid.ColumnSpan="2" Text="{Binding Title}" />

        <Label Grid.Row="1" Grid.Column="0" Content="Argument received via navigation:" />
        <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding ArgumentReceived}" />

        <Label Grid.Row="2" Grid.Column="0" Content="Argument to set via navigation:" />
        <TextBox Grid.Row="2" Grid.Column="1" Text="{Binding ArgumentToSet}" />

        <Button Grid.Row="3" Grid.RowSpan="2" Command="{Binding NavigateToOtherPage}" Content="Navigate away!" />
    </Grid>
</catel:Page>
